<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:82:"/Applications/MAMP/htdocs/wifi/public/../application/admin/view/manager/index.html";i:1531899610;s:72:"/Applications/MAMP/htdocs/wifi/application/admin/view/common/layout.html";i:1531800487;s:72:"/Applications/MAMP/htdocs/wifi/application/admin/view/common/header.html";i:1531800487;s:69:"/Applications/MAMP/htdocs/wifi/application/admin/view/common/nav.html";i:1531800487;s:70:"/Applications/MAMP/htdocs/wifi/application/admin/view/common/menu.html";i:1531800487;s:72:"/Applications/MAMP/htdocs/wifi/application/admin/view/common/footer.html";i:1531800487;}*/ ?>
﻿<!DOCTYPE HTML>
<html>
    <head>
        <title><?=$seo['title']?$seo['title']:config('SITE_NAME')?></title>
        <meta charset="UTF-8">
        <meta name="renderer" content="webkit|ie-comp|ie-stand">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <link href="/static/hui/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
        <link href="/static/hui/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
        <link href="/static/hui/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
        <link href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
        <script type="text/javascript" src="/static/lib/layDate-v5.0.9/laydate/laydate.js"></script> 
        <link rel="Bookmark" href="<?=config('site_logo')?>" >
        <link rel="Shortcut Icon" href="<?=config('site_logo')?>" />
        <!--[if lt IE 9]>
        <script type="text/javascript" src="/lib/html5.js"></script>
        <script type="text/javascript" src="/lib/respond.min.js"></script>
        <![endif]-->
        <link rel="stylesheet" type="text/css" href="/static/hui/h-ui.admin/css/H-ui.admin.css" />
        <link rel="stylesheet" type="text/css" href="/static/hui/h-ui.admin/skin/default/skin.css" id="skin" />
        <!--[if IE 6]>
        <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
        <script>DD_belatedPNG.fix('*');</script>
        <![endif]-->
        <!--/meta 作为公共模版分离出去-->
    </head>
    <body>



<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container-fluid cl">
            <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/admin/index"><?=config('site_name')?></a> 
            <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="/admin/index"></a> 
            <span class="logo navbar-slogan f-l mr-10 hidden-xs"></span> 
            <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                <ul class="cl">
                    <li><?php echo $admininfo['mobile']; ?></li>
                    <li class="dropDown dropDown_hover"> <a href="#" class="dropDown_A"><i class="Hui-iconfont">&#xe6d5;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="/admin/login/quit">退出</a></li>
                        </ul>
                    </li>
                    <li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
                            <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                            <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                            <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                            <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                            <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>
<!--_menu 作为公共模版分离出去-->
<aside class="Hui-aside">
    <div class="menu_dropdown bk_2">
        <?php foreach($menus as $menu) { ?>
        <dl id="menu-config">
            <dt <?php echo $controller==$menu['controller']?'class="selected"':'';?>><?php echo $menu['title']; ?><i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd <?php echo $controller==$menu['controller']?'style="display:block;"':'';?>>
                <ul>
                    <?php foreach($menu['menus'] as $sub_menu) { ?>
                    <li <?php echo $controller==$sub_menu['controller']&&$action==$sub_menu['action']?'class="current"':'';?>>
                        <a href="/admin/<?=$sub_menu['controller']?>/<?=$sub_menu['action']?>" title="<?php echo $sub_menu['name']; ?><"><?php echo $sub_menu['title']; ?></a>
                    </li>
                    <?php } ?>
                </ul>
            </dd>
        </dl>
        <?php } ?>
    </div>
</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<!--/_menu 作为公共模版分离出去-->

 
<section class="Hui-article-box">
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        管理员管理
        <span class="c-gray en">&gt;</span>
        管理员列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.reload();" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a> </nav>
    <div class="Hui-article">
        <article class="cl pd-20">
<!--            <div class="text-c"> 日期范围：
                <input type="text" onfocus="" id="datemin" class="input-text Wdate" style="width:120px;">
                -
                <input type="text" onfocus="" id="datemax" class="input-text Wdate" style="width:120px;">
                <input type="text" class="input-text" style="width:250px" placeholder="输入管理员名称" id="" name="">
                <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>
            </div>-->
            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="l"> 
                    <!--<a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>--> 
                    <a href="javascript:;" onclick="admin_add('添加管理员', '/admin/manager/addmanager', '800', '500')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加管理员</a> 
                </span>
<!--                <span class="r">共有数据：<strong>54</strong> 条</span>-->
            </div>
            <table class="table table-border table-bordered table-bg">
                <thead>
                    <tr>
                        <th scope="col" colspan="9">员工列表</th>
                    </tr>
                    <tr class="text-c">
                        <th width="40">ID</th>
                        <th width="90">手机</th>
                        <th width="130">加入时间</th>
<!--                        <th width="100">是否已启用</th>-->
                        <th width="100">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($datalist as $k=>$v){ ?>
                    <tr class="text-c">
                        <td><?php echo $v['id']; ?></td>
                        <td><?=$v['mobile']?></td>
                        <td><?=$v['create_time']?></td>
<!--                        <td class="td-status"><span class="label label-success radius">已启用</span></td>-->
                        <td class="td-manage">
                            <a onclick="admin_edit('管理员编辑', '/admin/manager/addmanager?id=<?php echo $v['id']; ?>', '1', '800', '500')" 
                                class="ml-5 btn radius btn-primary">
                                 <i class="Hui-iconfont">&#xe6df;</i>编辑
                             </a> 
                             <a onclick="admin_del(this, <?php echo $v['id']; ?>)" class="btn radius btn-danger">
                                 <i class="Hui-iconfont">&#xe6e2;</i>删除
                             </a>
                    </tr>
                    <?php } ?>
                </tbody>
            </table>
        </article>
    </div>
</section>


<script type="text/javascript" src="/static/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="/static/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="/static/lib/laypage/1.2/laypage.js"></script> 
<script type="text/javascript">
/*
    参数解释：
    title	标题
    url		请求的url
    id		需要操作的数据id
    w		弹出层宽度（缺省调默认值）
    h		弹出层高度（缺省调默认值）
*/
/*管理员-增加*/
function admin_add(title,url,w,h){
    layer_show(title,url,w,h);
}
/*管理员-删除*/
function admin_del(obj,id){
    layer.confirm('确认要删除吗？',function(index){
        //此处请求后台程序，下方是成功后的前台处理……
        $.get('/admin/manager/deletemanager?id='+id).then(function(res){
            if(res.ret==0) {
                layer.msg(res.message,{icon:1,time:1000});
                $(obj).parents("tr").remove();
            }else{
                layer.msg(res.message);
            }
        })
        
    });
}
/*管理员-编辑*/
function admin_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}
/*管理员-停用*/
function admin_stop(obj,id){
	layer.confirm('确认要停用吗？',function(index){
		//此处请求后台程序，下方是成功后的前台处理……
		
		$(obj).parents("tr").find(".td-manage").prepend('<a onClick="admin_start(this,id)" href="javascript:;" title="启用" style="text-decoration:none"><i class="Hui-iconfont">&#xe615;</i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-default radius">已禁用</span>');
		$(obj).remove();
		layer.msg('已停用!',{icon: 5,time:1000});
	});
}

/*管理员-启用*/
function admin_start(obj,id){
	layer.confirm('确认要启用吗？',function(index){
		//此处请求后台程序，下方是成功后的前台处理……
		$(obj).parents("tr").find(".td-manage").prepend('<a onClick="admin_stop(this,id)" href="javascript:;" title="停用" style="text-decoration:none"><i class="Hui-iconfont">&#xe631;</i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
		$(obj).remove();
		layer.msg('已启用!', {icon: 6,time:1000});
	});
}
</script> 

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/hui/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="/static/hui/h-ui.admin/js/H-ui.admin.page.js"></script> 
<script type="text/javascript" src="/static/common.js"></script> 
</body>
</html>